﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("1234，加减乘除");
            int key = int.Parse(Console.ReadLine());
            switch (key)
            {
                case 1:
                    Operation a = new Add();
                    Console.WriteLine(a.Run());
                    break;
                case 2:
                    Operation r = new Reduce();
                    Console.WriteLine(r.Run());
                    break;
                case 3:
                    Operation m = new Multiply();
                    Console.WriteLine(m.Run());
                    break;
                case 4:
                    Operation d = new Division();
                    Console.WriteLine(d.Run());
                    break;
                default:
                    Process.GetCurrentProcess().Kill();
                    break;

                    
            }

            Circle c = new Circle();
            Square s = new Square();
            People p = new People();
            p.figure(c);
            p.figure(s);




        }
    }
}
